home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 1.4 KB | 59 lines | [TEXT/MPS ] |
- // UStringHandle.h
- // Copyright © 1985-96 by Apple Computer, Inc. All rights reserved.
-
- #ifndef __USTRINGHANDLE__
- #define __USTRINGHANDLE__
-
- #ifndef __UOBJECT__
- #include "UObject.h"
- #endif
-
- #ifndef __UDYNAMICARRAY__
- #include "UDynamicArray.h"
- #endif
-
- #ifndef __FILE__
- #include <file.h>
- #endif
-
-
- //========================================================================================
- // CLASS TStringHandle
- //========================================================================================
-
- class TStringHandle : public TObject
- {
- MA_DECLARE_CLASS;
-
- public:
- TStringHandle(); // constructor
-
- virtual ~TStringHandle(); // override
-
- void IStringHandle();
-
- void WriteToFile(FILE* theFile);
-
- void Catenate(const CStr255& theString);
-
- void CatenateToFront(const CStr255& theString);
-
- void AsStr255(CStr255& theString);
-
- CStr255 AsStr255();
-
- //----------------------------------------------------------------------------------------
- // data members
- //----------------------------------------------------------------------------------------
- protected:
- TDynamicArray* fText;
- };
-
- //----------------------------------------------------------------------------------------
- // NewTStringHandle:
- //----------------------------------------------------------------------------------------
-
- extern TStringHandle* NewTStringHandle();
-
- #endif // __USTRINGHANDLE__
-